﻿using MySql.Data.MySqlClient;
using System;
using System.Data;
using System.Text;
using util;
using MySqlHelper = util.MySqlHelper;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            String sql = "";
            DataTable Adt = MySqlHelper.GetDataTable(sql);

            //2.获取第一行数据

            DataRow row = MySqlHelper.GetDataRow(sql);

            // 3.插入数据

            MySqlHelper.DoInsert("t_media",
                    new String[] { "F_SrcUrl", "F_SavePath", "F_FileName", "F_CreateTime", "F_Status" }, null);
    //  new Object[] { srcUrl, savePath, fileName, System.DateTime.Now, status });

    //4.更新数据

    MySqlHelper.DoInsert("t_media",
                    new String[] { "F_SrcUrl", "F_SavePath", "F_FileName", "F_CreateTime", "F_Status" }, null);
                            //new Object[] { srcUrl, savePath, fileName, System.DateTime.Now, status });

            }
    }
}
